package com.gonsin.gmessage.logic.model;

import io.swagger.annotations.ApiParam;
import lombok.Data;

@Data
public class GMessagePageRequest {

    @ApiParam(value = "每页个数", example="10")
    private Integer count = 10000;

    @ApiParam(value = "第几页", example="10")
    private Integer page = 0;

    @ApiParam(value = "是否只返回指定的列", example="name")
    private String columns;

    @Deprecated
    @ApiParam("按什么排列，例如 createTime ，可以为空(弃用)")
    private String sortBy;

    @Deprecated
    @ApiParam(value = "排序方向，0：递增，1：递减(弃用)", example="1")
    private Integer sortDirection;

    @ApiParam("排序方向，+createTime表示按createTime递增排序，多个排序方式用逗号隔开，例如，+createTime,-name")
    private String sort;

}
